<div class="ui container">
  <br><br><br>
  <div class="ui breadcrumb">
  <a href="/personal" class="section">个人中心</a>
  <div class="divider"> / </div>
  <div class="active section">我的银行卡</div>
</div>
<div class="ui divider">
  <%= flash_tag(:error, :class => 'ui error message transition flash-notice') %>
  <%= flash_tag(:success, :class => 'ui success message transition flash-notice') %>
</div>
<script type="text/javascript">
$('.flash-notice').fadeOut(3000);

</script>
<a href="/personal/new_bank_card" class="ui teal button">
  增加一张银行卡
</a>
<div class="ui divider">

</div>
<div class="ui vertically divided grid">
  <% @bankcards.each do |bankcard| %>
  <div class="doubling five column row">
    <div class="column">
      银行卡号：<%=bankcard.card_number %>
    </div>
    <div class="column">
      银行开户行：<%=bankcard.bank_address %>
    </div>
    <div class="column">
      银行开户行预留手机号：<%=bankcard.bank_mobile %>
    </div>
    <div class="column">
      户头姓名：<%=bankcard.bank_real_name %>
    </div>
    <div class="column">
      在<%=bankcard.created_at.strftime("%Y-%m-%d %H:%M:%S") %>时添加
    </div>
    <div class="column">
      <div class="ui buttons">
        <a href="/personal/edit_bank_card/<%= bankcard.id %>" class="ui basic red button">
          编辑
        </a>
        <a href="/personal/delete_bank_card/<%= bankcard.id %>" onclick="return confirm('是否确认删除 ?')" class="ui basic blue button">
          删除
        </a>
      </div>

    </div>
  </div>
  <% end %>

</div>
</div>
